Q: The main purpose of JavaScript in web browser is to ___________
Solution: JavaScript can help to facilitate that experience, for example by: Creating animations and other visual effects to subtly guide a user and help with page navigation Sorting the columns of a table to make it easier for a user to find what she needs
Q: A JavaScript program can traverse and manipulate document content through __________
Solution: A JavaScript program can traverse and manipulate document content through the Document object and the Element objects it contains. It can alter the presentation of that content by scripting CSS styles and classes. The Element object represents an HTML element, like P, DIV, A, TABLE, or any other HTML element.
Q: The behaviour of the document elements can be defined by __________
Solution: The JavaScript program can define the behavior of document elements by registering appropriate event handlers. A JavaScript program can traverse and manipulate document content through the Document object and the Element objects it contains.
Q: The service(s) that enables networking through scripted HTTP requests is __________
Solution: The best known advanced services is the XMLHttpRequest object, which enables networking through scripted HTTP requests. The XMLHttpRequest object can be used to request data from a web server.
Q: The HTML5 specification does not includes __________
Solution: The HTML5 specification (which, at the time of this writing, is still in draft form) and related specifications are defining a number of other important APIs for web apps. These include data storage and graphics APIs.The data storage api can store data locally within the user’s browser.
Q: Which of the following is not an advanced services?
Solution: Data storage is used to store data locally on user’s computer and networking is used for connecting between different platforms.
Q: JavaScript code between a pair of “script” tags are called __________
Solution: TheQ: What is the programming philosophy that argues that content and behaviour should as much as possible be kept separate?A. Unobtrusive JavaScriptB. Obtrusive JavaScriptC. Inherited JavaScriptD. Modular JavaScriptSolution: A programming philosophy known as unobtrusive JavaScript argues that content (HTML) and behavior (JavaScript code) should as much as possible be kept separate. According to this programming philosophy, JavaScript is best embedded in HTML documents using “script” elements with src attributes.Q: Which of the following communicates with server-side CGI scripts through HTML form submissions and can be written without the use of JavaScript?A. Static Web PagesB. Interactive Web PagesC. Conditional Web PagesD. All web pagesSolution: An interactive web page can dynamically vary its content based on user preferences. Interactive web pages that communicate with server-side CGI scripts through HTML form submissions were the original “web application” and can be written without the use of JavaScript.
You Have Score    | /10 |